<template>
  <el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm">
    <el-form-item label="请选择你的主体类型  " prop="type">
      <div style="margin-top: 50px" class="radio-container">
        <el-radio v-model="radio1" label="1" border>
          <i class="el-icon-reading"></i>
          <i class="fs">知识店铺</i>
          <p class="lsn">建议政府部门,事业单位,企业<br>个人用户申请知识店铺。</p>
        </el-radio>
        <el-radio v-model="radio1" label="2" border>
          
          <i class="el-icon-s-claim"></i>
          <i class="fs">培训机构</i>
          <div class="fk">
          <p class="lsn" >建议持有办学许可证与营业执照的<br>企事业单位申请培训机构账号</p></div>
        </el-radio>
        <el-radio v-model="radio1" label="3" border>
          <i class="el-icon-collection"></i>
          <i class="fs">学校</i>
          <p class="lsn">建议正规的国内学校及海外学校<br>申请学校账号</p>
        </el-radio>
        
      </div>
    </el-form-item>
    <el-form-item label="请选择你的主体类型  " prop="type">
      <div style="margin-top: 50px" class="radio-container">
        <el-radio v-model="radio1" label="7" border>
          
          <i class="fs">政府单位/事业单位</i>
         
        </el-radio>
        <el-radio v-model="radio1" label="5" border>
          
          
          <i class="fs">企业</i>
          <div class="fk">
          <p class="lsn" ></p></div>
        </el-radio>
        <el-radio v-model="radio1" label="6" border>
         
          <i class="fs" style="text-align:center">个人</i>
          <p class="lsn" ></p>
        </el-radio>
        
      </div>
    </el-form-item>
    <el-form-item>
      <el-button
        type="primary"
        size="small"
        @click.native.prevent=""
        class="reg-submit"
      >{{$t('reg.submit')}}</el-button>
    </el-form-item>
  </el-form>
</template>
<script>
import { mapGetters } from "vuex";
import website from "@/config/website";
export default {
  data() {
    return {
      ruleForm: {
        delivery: false,
        type: [],
        resource: "",
        desc: ""
      },
      radio1: "1",
      radio1: "1",
      radio1: "1",
      radio1: "1",
      radio:"1",
      
      rules: {
        // name: [
        //   { required: true, message: "请输入活动名称", trigger: "blur" },
        //   { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
        // ],

        type: [
          {
            type: "array",
            required: true,
            message: "",
            trigger: "change"
          }
        ],
        resource: [
          { required: true, message: "请选择活动资源", trigger: "change" }
        ],
        desc: [{ required: true, message: "请填写活动形式", trigger: "blur" }]
      }
    };
  },
  methods: {
    submitForm(formName) {
      this.$refs[formName].validate(valid => {
        if (valid) {
          alert("submit!");
        } else {
          console.log("error submit!!");
          return false;
        }
      });
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    }
  }
};
</script>
<style lang="scss" scoped>
.el-icon-reading {
  height: 20px;
  font-size: 30px;
  /* color: tomato; */
  text-align: center;
  line-height: 10px;
}
.el-icon-s-claim{
  height: 20px;
  font-size: 30px;
  /* color: tomato; */
  text-align: center;
  line-height: 10px;
}
.el-icon-collection{
   height: 20px;
  font-size: 30px;
  /* color: tomato; */
  text-align: center;
  line-height: 10px;
}
.fs {
  font-size: 16px;
  color: black;
  font-weight: bold;
  width: 200px;
}
.lsn {
  color: darkslategray;
  width: 200px;
  text-align: center;

}
.el-radio.is-bordered {
  height: 85px;
  width: 250px;
 
 

}
.radio-container{
   display: flex;
  flex-wrap: wrap;
  width: 1500px;
  height: 85px;
  margin-left: 100px;
  
}
.fk{
  width: 100px;
  height: 40px;
  position:absolute;
}
.el-form-item__content{
  left:20px;
  line-height: 40px;
  position: relative;
  font-size: 100px;
}

.el-form-item__label {
    text-align: right;
    float: left;
    font-size: 14px;
    color: #606266;
    line-height: 40px;
    padding: 0 12px 0 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-left: 124px;
}
.reg-submit{
    text-align: center;
    margin-left: 427px;
    width: 396px;
}

</style>
